
package net.mcreator.toolsasfood.potion;

import net.minecraft.world.level.Level;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.effect.MobEffectCategory;
import net.minecraft.world.effect.MobEffect;

import net.mcreator.toolsasfood.procedures.SummonDirtProcedure;

public class IronShovelSummonDirtMobEffect extends MobEffect {
	public IronShovelSummonDirtMobEffect() {
		super(MobEffectCategory.BENEFICIAL, -1);
		setRegistryName("iron_shovel_summon_dirt");
	}

	@Override
	public String getDescriptionId() {
		return "effect.tools_as_food.iron_shovel_summon_dirt";
	}

	@Override
	public void applyEffectTick(LivingEntity entity, int amplifier) {
		Level world = entity.level;
		double x = entity.getX();
		double y = entity.getY();
		double z = entity.getZ();

		SummonDirtProcedure.execute(world, x, y, z);
	}

	@Override
	public boolean isDurationEffectTick(int duration, int amplifier) {
		return true;
	}
}
